﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace DTO
{
    [DataContract(IsReference = true)]
    [KnownType(typeof(CharacteristicBase))]
    [KnownType(typeof(GradationBase))]
    [KnownType(typeof(SectionBase))]
    public class IndexMarkItem: DTOChilds
    {
        [DataMember]
        public int ID { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string Order { get; set; }

        [DataMember]
        public double Weight { get; set; }

        //возможно в партикал на стороне клиента

        public override string ToString()
        {
            return this.Order + " - " + this.Name;
        }
    }
}
